package org.com.yz.dal.dao.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 准备金充值流水
 * </p>
 *
 * @author wzc123
 * @since 2018-12-27
 */
@TableName("reserve_recharge")
public class ReserveRecharge extends Model<ReserveRecharge> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商户号
     */
    private String mchno;
    /**
     * 柜员流水号
     */
    private String srvrtid;
    /**
     * 交易类型（借(DEBIT/CREDIT)贷类型
     */
    private String trntype;
    /**
     * 记账日期
     */
    private String dtacct;
    /**
     * 交易金额，为负值表示冲正
     */
    private Double trnamt;
    /**
     * 余额
     */
    private String balamt;
    /**
     * 币种
     */
    private String currency;
    /**
     * “摘要简称|用途（来账，往账：用途。1187补录，基本为交易代码）”如果无用途，则只返回” 摘要简称
     */
    private String memo;
    /**
     * 对方账号
     */
    @TableField("correlate_acctid")
    private String correlateAcctid;
    /**
     * 对方账户名称
     */
    @TableField("correlate_name")
    private String correlateName;
    /**
     * 附加行名
     */
    @TableField("correlate_bankname")
    private String correlateBankname;
    /**
     * 附加行号
     */
    @TableField("correlate_bankcode")
    private String correlateBankcode;
    /**
     * 业务类型
     */
    private String businesstype;
    /**
     * 流水唯一标识号，由流水交易日期、核心传票组序号、核心传票组内序号组成
     */
    private String attachinfo;
    /**
     * 充值状态  0未充值 1已充值
     */
    private String status;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMchno() {
        return mchno;
    }

    public void setMchno(String mchno) {
        this.mchno = mchno;
    }

    public String getSrvrtid() {
        return srvrtid;
    }

    public void setSrvrtid(String srvrtid) {
        this.srvrtid = srvrtid;
    }

    public String getTrntype() {
        return trntype;
    }

    public void setTrntype(String trntype) {
        this.trntype = trntype;
    }

    public String getDtacct() {
        return dtacct;
    }

    public void setDtacct(String dtacct) {
        this.dtacct = dtacct;
    }

    public Double getTrnamt() {
        return trnamt;
    }

    public void setTrnamt(Double trnamt) {
        this.trnamt = trnamt;
    }

    public String getBalamt() {
        return balamt;
    }

    public void setBalamt(String balamt) {
        this.balamt = balamt;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getCorrelateAcctid() {
        return correlateAcctid;
    }

    public void setCorrelateAcctid(String correlateAcctid) {
        this.correlateAcctid = correlateAcctid;
    }

    public String getCorrelateName() {
        return correlateName;
    }

    public void setCorrelateName(String correlateName) {
        this.correlateName = correlateName;
    }

    public String getCorrelateBankname() {
        return correlateBankname;
    }

    public void setCorrelateBankname(String correlateBankname) {
        this.correlateBankname = correlateBankname;
    }

    public String getCorrelateBankcode() {
        return correlateBankcode;
    }

    public void setCorrelateBankcode(String correlateBankcode) {
        this.correlateBankcode = correlateBankcode;
    }

    public String getBusinesstype() {
        return businesstype;
    }

    public void setBusinesstype(String businesstype) {
        this.businesstype = businesstype;
    }

    public String getAttachinfo() {
        return attachinfo;
    }

    public void setAttachinfo(String attachinfo) {
        this.attachinfo = attachinfo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReserveRecharge{" +
                "id=" + id +
                ", mchno=" + mchno +
                ", srvrtid=" + srvrtid +
                ", trntype=" + trntype +
                ", dtacct=" + dtacct +
                ", trnamt=" + trnamt +
                ", balamt=" + balamt +
                ", currency=" + currency +
                ", memo=" + memo +
                ", correlateAcctid=" + correlateAcctid +
                ", correlateName=" + correlateName +
                ", correlateBankname=" + correlateBankname +
                ", correlateBankcode=" + correlateBankcode +
                ", businesstype=" + businesstype +
                ", attachinfo=" + attachinfo +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
